class CreateFurnitureLogisticStatOrderItems < ActiveRecord::Migration
  def self.up
    create_table :furniture_logistic_stat_order_items do |t|
      t.integer :furniture_logistic_stat_id,
        :order_item_id,
        :enter_item_id
      t.integer :ordered_count,
        :has_been_sent_to_installer_count,
        :installed_count,
        :after_serviced_count,
        :default => 0
      t.timestamps
    end
  end

  def self.down
    drop_table :furniture_logistic_stat_order_items
  end
end
